package com.zhang.passer.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 游记攻略
 */
@TableName("t_youji")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class YouJiDo implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer yid;
    private String title;
    private Date time;
    private Integer uid;
    private String text;

    //所有图片url
    @TableField(exist = false)
    private List<ImageDo> images;

    //对应用户信息
    @TableField(exist = false)
    private UserSafe user;
}
